/**
 * 宠物主人实体类，用于存储主人的联系信息
 * @author 用户名
 * @version 1.0
 */
package animal;

public class Owner {
    private String ownerId;   //主人id
    private String name;      //主人姓名
    private String phone;     //主人姓名
    private String address;   //主任地址

    /**
     * Owner主人信息构造方法
     * @param ownerId 主人唯一标识
     * @param name 姓名
     * @param phone 联系电话
     * @param address 详细地址
     */
    public Owner(String ownerId, String name, String phone, String address) {
        this.ownerId = ownerId;
        this.name = name;
        this.phone = phone;
        this.address = address;
    }

    // Getters and setters
    public String getOwnerId() { return ownerId; }
    public void setName(String name) { this.name = name; }
    public void setPhone(String phone) { this.phone = phone; }
    public void setAddress(String address) { this.address = address; }
    
    public String getName() { return name; }
    public String getPhone() { return phone; }
    public String getAddress() { return address; }

    @Override
    public String toString() {
        return "主人id ="+ownerId + "\t姓名=" + name + "\t电话号码=" + phone + "\t地址="+address;
    }
}